home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Function Prototype placement in source files
- Date: Fri, 16 Feb 96 17:30:17 GMT
- Organization: none
- Message-ID: <824491817snz@genesis.demon.co.uk>
- References: <4g0obg$78b@barad-dur.nas.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4g0obg$78b@barad-dur.nas.com>
- gldnspud@kali.nas.com "Matt Scott" writes:
-
- >My question is this: is there a compelling reason not to prototype
- >functions above all of the functions using it, such as:
- >
- >float one(void);
- >void two(void);
-
- No, there isn't. Putting function declarations within function is generally
- rather poor practice and to be avoided (and certainly not taught).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-